@include ('user.header', ['title' => '转发详情'])
  <!-- 修改：合并并优化面包屑导航 -->
  <nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="container">
      <ol class="breadcrumb mb-0">
        <li class="breadcrumb-item"><a href="./">用户中心</a></li>
        <li class="breadcrumb-item"><a href="/user/forward-list">我的域名</a></li>
        <li class="breadcrumb-item active" aria-current="page">转发详情</li>
      </ol>
    </div>
  </nav>
  
  <!-- 保持原有容器结构不变 -->
  <div class="container py-4">
    <div class="row">
      <div class="col-xs-12 col-sm-8 mx-auto">
        @if (isset($result))
          <div class="alert alert-info alert-dismissible fade show" role="alert">
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
            {{ $result['msg'] }}
          </div>
        @else
          <div class="card shadow-sm mb-3">
            <div class="card-body p-3">
              <form class="needs-validation" novalidate>
                <div class="mb-3">
                  <label for="domain" class="form-label fw-bold">域名</label>
                  <div class="input-group">
                    <input type="text" value="{{ $Res['domain'] }}" class="form-control" id="domain" readonly>
                    <button class="btn btn-outline-secondary" type="button" onclick="window.open('http://'+document.getElementById('domain').value)">Go!</button>
                  </div>
                </div>
                @if ($Res['mode']=='0' || $Res['mode']=='1')
                <div class="mb-3">
                  <label for="url" class="form-label fw-bold">目标地址</label>
                  <div class="input-group">
                    <input type="text" value="{{ $Res['url'] }}" class="form-control" id="url" readonly>
                    <button class="btn btn-outline-secondary" type="button" onclick="window.open('{{ $Res['url']}}')">Go!</button>
                  </div>
                </div>
                @endif
                <div class="mb-3">
                  <label for="mode" class="form-label fw-bold">类型</label>
                  <select name="mode" id="mode" class="form-select" disabled>
                    <option value="0" @if($Res['mode']=='0') selected @endif>显性转发</option>
                    <option value="1" @if($Res['mode']=='1') selected @endif>隐性转发</option>
                  </select>
                </div>
                <div class="mb-3">
                  <label for="id" class="form-label fw-bold">编号</label>
                  <input type="text" value="{{ $Res['id'] }}" class="form-control" readonly>
                </div>
                @if ($Res['mode']=='1')
                <div class="mb-3">
                  <label for="title" class="form-label fw-bold">标题</label>
                  <input type="text" value="{{ $Res['title'] }}" class="form-control" readonly>
                </div>
                <div class="mb-3">
                  <label for="keywords" class="form-label fw-bold">关键字</label>
                  <input type="text" value="{{ $Res['keywords'] }}" class="form-control" readonly>
                </div>
                <div class="mb-3">
                  <label for="description" class="form-label fw-bold">页面描述</label>
                  <input type="text" value="{{ $Res['description'] }}" class="form-control" readonly>
                </div>
                @endif
                <div class="mb-3">
                  <label for="time" class="form-label fw-bold">添加时间</label>
                  <input type="text" value="{{ $Res['time'] }}" class="form-control" readonly>
                </div>
              </form>
            </div>
          </div>
        @endif
      </div>
      <div class="col-xs-12 col-sm-4">
        <div class="card shadow-sm mb-3">
          <div class="card-body p-3">
            <b>显性转发</b><br/>
            当访客访问您的域名时，直接跳转至您所指定的网址<hr/>
            <b>隐性转发</b><br/>
            当访客访问您的域名时，会显示您所指定的网址的内容，并且地址栏的网址不会发生变化
          </div>
        </div>
      </div>
    </div>
  </div>
@include('user.footer')